package com.eclink.asset.convert;

import com.eclink.asset.asset.domain.dao.AssetApplyRelItem;
import com.eclink.asset.asset.domain.dao.AssetItem;
import com.eclink.asset.pojo.dto.AssetItemDTO;
import com.eclink.asset.pojo.vo.AssetItemVO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 资产清单表  DO <=> DTO <=> VO / BO / Query
 *
 * @author zcc
 */
@Mapper(componentModel = "spring")
public interface AssetItemConvert  {

    /**
     * @param source DO
     * @return DTO
     */
    AssetItemDTO do2dto(AssetItem source);

    /**
     * @param source DTO
     * @return DO
     */
    AssetItem dto2do(AssetItemDTO source);

    /**
     * @param source DTO
     * @return DO
     */
    AssetItem vo2do(AssetItemVO source);

    List<AssetItemVO> dos2vos(List<AssetItem> list);

    AssetItem applyInItem2do(AssetApplyRelItem source);



}
